package tazadum.engine.scene;

import javax.media.opengl.GL2;
import javax.media.opengl.glu.gl2.GLUgl2;

import tazadum.engine.math.Vector;

public abstract class CameraScene implements Scene {
	protected GLUgl2 glu = new GLUgl2();

	protected final Vector up = Vector.Y;
	protected final Vector eye = new Vector(10, 10, 10);
	protected final Vector target = new Vector(0, 0, 0);

	protected void setupCamera(final GL2 gl) {
		gl.glMatrixMode(GL2.GL_MODELVIEW);
		gl.glLoadIdentity();
		glu.gluLookAt(eye.x, eye.y, eye.z, target.x, target.y, target.z, Vector.Y.x, Vector.Y.y, Vector.Y.z);
	}
}
